home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
str2bmp
/
test.bas
< prev
next >
Wrap
BASIC Source File
|
1995-09-06
|
1KB
|
27 lines
Option Explicit
' Bitmap to string functions...
Declare Function BMPToString Lib "str2bmp.dll" (ByVal hDC%, ByVal img%, ByVal a$) As Long
Declare Function BMP_GetSize Lib "str2bmp.dll" (ByVal img%) As Long
Declare Function BMP_GetWidth Lib "str2bmp.dll" (ByVal img%) As Integer
Declare Function BMP_GetHeight Lib "str2bmp.dll" (ByVal img%) As Integer
' Bitmap handling functions.
Declare Function StringToBmp Lib "str2bmp.dll" (ByVal a$, ByVal hDC%, ByVal img%) As Long
' Functions for operating on bitmaps stored as strings.
Declare Function StringBMP_GetWidth Lib "str2bmp.dll" (ByVal a$) As Integer
Declare Function StringBMP_GetHeight Lib "str2bmp.dll" (ByVal a$) As Integer
Declare Function StringBMP_Compare Lib "str2bmp.dll" (ByVal a$, ByVal b$) As Long
Declare Function StringBMP_Invert Lib "str2bmp.dll" (ByVal a$, ByVal r$) As Long
Declare Function StringBMP_Or Lib "str2bmp.dll" (ByVal a$, ByVal b$, ByVal r$) As Long
Declare Function StringBMP_and Lib "str2bmp.dll" (ByVal a$, ByVal b$, ByVal r$) As Long
Sub MakePicture (a$, p As PictureBox)
Dim ret As Long
ret = StringToBmp(a$, p.hDC, p.Image)
If (ret < 0) Then Stop
End Sub